package com.my.screenadapter.myActivity;

import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.Button;

import com.my.screenadapter.Base.BaseActivity;
import com.my.screenadapter.R;

import butterknife.BindView;

public class StandardActivity extends BaseActivity {


    @BindView(R.id.back)
    Button back;
    @BindView(R.id.backAndSetCode)
    Button backAndSetCode;


    @Override
    protected void init() {
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                StandardActivity.this.finish();
            }
        });
        backAndSetCode.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                setResult(1234,new Intent());
                StandardActivity.this.finish();
            }
        });
    }

    @Override
    protected int initLayoutId() {
        return R.layout.activity_aa;
    }

    private static final String TAG = "StandardActivity===";
    @Override
    protected void onPause() {
        super.onPause();
        Log.i(TAG, "onPause: ");
        // TODO: 2017/9/27 遗留问题 opause 设置没有起到作用
        setResult(110,null);
    }


}
